package edu.zac.service;

import edu.zac.anno.Cache;
import org.springframework.stereotype.Service;

/**
 * @Title
 * @Author Peihan.Zhang
 * @Email zhangpeihan@sjgtw.com
 * @Date 2021/10/22 15:10
 * @Versions 1.0
 */
@Service
public class EmpServiceImpl  implements  EmpService{
    @Override
    @Cache
    public void add() {
        System.out.println("添加方法成功");
    }

    @Override
    public void delete() {
        System.out.println("删除方法成功");
    }

    @Override
    @Cache
    public String after() {
        return "尼玛扎里";
    }

    @Cache
    @Override
    public void afterthrow() {
           int a = 1/0;
    }


    @Cache
    @Override
    public void testround() {
        System.out.println("round方法已被执行");
    }
}
